<?php 
require_once('inc/conn.php');
    $sql="UPDATE slide set title='".$_POST['title']."',
                                lianjie='".$_POST['lianjie']."',
                                tupian='".$_POST['tupian']."' WHERE id='".$_GET['id']."'
    ";
    mysql_query($sql);
    echo "<script>alert('修改成功');window.location.href='slide_list.php'</script>";
    mysql_close($conn);
 ?>